VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Processing Namespace / ConditionalCommand<TTarget> Class / ConditionalCommand Constructors / ConditionalCommand<TTarget> Constructor(String,Analyzer<TTarget,Boolean>,IProcessingCommand<TTarget>,IProcessingCommand<TTarget>)
Syntax Requirements SeeAlso
In This Topic
    ConditionalCommand<TTarget> Constructor(String,Analyzer<TTarget,Boolean>,IProcessingCommand<TTarget>,IProcessingCommand<TTarget>)
    In This Topic
    Initializes a new instance of the ConditionalCommand<TTarget> class.
    Syntax
    'Declaration
    
    Public Function New( _
    ByVal name
    The name of processing command.
    As System.String, _
    ByVal condition
    The condition predicate.
    As Vintasoft.Imaging.Processing.Analyzers.Analyzer(Of TTarget,TValue), _
    ByVal ifBranch
    Processing command that must be executed if condition result is true.
    As IProcessingCommand(Of TTarget), _
    ByVal elseBranch
    Processing command that must be executed if condition result is false.
    As IProcessingCommand(Of TTarget) _
    )

    Parameters

    name
    The name of processing command.
    condition
    The condition predicate.
    ifBranch
    Processing command that must be executed if condition result is true.
    elseBranch
    Processing command that must be executed if condition result is false.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also